package com.web44.springboot.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Title: Emp
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/28 11:12
 * @Value 不支持 键值对的方式
 */
@Component
@Data
@Schema(title = "员工信息", description = "员工详细信息")
public class Emp {
    @Schema(name = "lastName", description = "员工姓名")
    @Value("${emp.lastName}")
    private String lastName;
    @Value("${emp.age}")
    @Schema(name = "age", description = "年龄")
    private Integer age;
    @Value("${emp.salary}")
    @Schema(name = "salary", description = "收入")
    private Double salary;
    @Value("${emp.boss}")
    @Schema(name = "boss", description = "是否是老板")
    private Boolean boss;
    @Value("${emp.birthday}")
    @Schema(name = "birthday", description = "生日")
    private Date birthday;
    // @Value("${emp.map}")
    private Map map;
    @Value("${emp.list}")
    private List list;
    //特长
    // @Value("${emp.forte}")
    private Forte forte;

}
